<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss2">
    <title>公告详情</title>
</head>
<body>

<div class="layui-fluid">


    <div class="layui-card">

        <form method="post" action="" class="layui-form" lay-filter="zmn-form">
            <input type="hidden" name="relateId" th:value="${notice.relateId}">

            <div class="layui-split">&nbsp;</div>

            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">平台：</label>
                <div class="layui-input-inline" style="width:160px">
                    <select id="plat" name="plat" lay-filter="plat" lay-verify="required" th:value="${notice.plat}">
                        <option value="">-选择-</option>
                        <option th:value="${orga.orgId}" th:selected="${orga.orgId == notice.plat}"
                                th:text="${orga.orgName}" th:each="orga:${orgaOnes}">组织名称
                        </option>
                    </select>
                </div>
                <div class="layui-input-inline" style="width:160px">
                    <select id="orgTwoId" name="orgTwoId" lay-filter="orgTwoId" th:value="${notice.orgTwoId}">
                        <option value="">-选择-</option>
                        <option th:value="${orga.orgId}" th:selected="${orga.orgId == notice.orgTwoId}"
                                th:text="${orga.orgName}" th:each="orga:${orgTwos}">组织名称
                        </option>
                    </select>
                </div>
                <div class="layui-input-inline" style="width:160px">
                    <select id="orgId" name="orgId" lay-filter="orgId" th:value="${notice.orgId}">
                        <option value="">-选择-</option>
                        <option th:value="${orga.orgId}" th:selected="${orga.orgId == notice.orgId}"
                                th:text="${orga.orgName}" th:each="orga:${orgThrs}">组织名称
                        </option>
                    </select>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">部门：</label>
                <div class="layui-input-inline" style="width:160px">
                    <select id="deptOneId" name="deptOneId" lay-verify="required" lay-filter="deptOneId" th:value="${notice.deptOneId}">
                        <option value="">-选择-</option>
                        <option th:value="${dept.deptId}" th:selected="${dept.deptId == notice.deptOneId}"
                                th:text="${dept.deptName}" th:each="dept:${deptOnes}">部门名称
                        </option>
                    </select>
                </div>
                <div class="layui-input-inline" style="width:160px">
                    <select id="deptTwoId" name="deptTwoId" lay-filter="deptTwoId" th:value="${notice.deptTwoId}">
                        <option value="">-选择-</option>
                        <option th:value="${dept.deptId}" th:selected="${dept.deptId == notice.deptTwoId}"
                                th:text="${dept.deptName}" th:each="dept:${deptTwos}">部门名称
                        </option>
                    </select>
                </div>
                <div class="layui-input-inline" style="width:160px">
                    <select id="deptId" name="deptId" lay-filter="deptId" th:value="${notice.deptId}">
                        <option value="">-选择-</option>
                        <option th:value="${dept.deptId}" th:selected="${dept.deptId == notice.deptId}"
                                th:text="${dept.deptName}" th:each="dept:${deptThrs}">部门名称
                        </option>
                    </select>
                </div>
                <div class="layui-form-mid layui-word-aux">同一部门只可配置1条公告</div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label layui-form-required">公告内容：</label>
                <div class="layui-input-block" style="width:650px;">
                    <textarea maxlength="1000" style="height: 160px" name="content" th:text="${notice.content}" class="layui-textarea" placeholder="请输入，1000字内" lay-verify="required" lay-verType="tips"></textarea>
                </div>
            </div>

            <div class="layui-form-item submit">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">保存</button>
                </div>
            </div>

            <div class="layui-split">&nbsp;</div>
        </form>
    </div>

</div>

<script type="text/javascript" th:inline="javascript">
    var json = {
        plat: [[${notice.plat}]],
        orgTwoId: [[${notice.orgTwoId}]],
        orgId: [[${notice.orgId}]],
        deptOneId: [[${notice.deptOneId}]],
        deptTwoId: [[${notice.deptTwoId}]],
        deptId: [[${notice.deptId}]],
        ZMN_URL_ENV: [[${ZMN_URL_ENV}]]
    };

    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        notice_detail_js: "notice/zmn.plat.notice.detail",
    }).use(['index', 'notice_detail_js']);
</script>
</body>
</html>